module.exports = function (args) {
    const {mode} = args
    const plugins = [
        require('postcss-preset-env'),
    ]
    if (mode === 'development') {
        plugins.push(require('cssnano')())
    }
    return {
        plugins
    }
}
